<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>添加总类</title>
    <link href="/assets/css/main.css" rel="stylesheet">
    <link href="/css/order.css" rel="stylesheet">
    <link type="image/png" rel="shortcut icon" href="/assets/images/favicon.png">
</head>
<body>
<div id="preloader">
    <div id="status"></div>
</div>
<div class="boxed-layout">
    <header class="top-header theme-bg">
        <div class="container">
            <div class="row">
                <div class="col-lg-5">
                    <div class="jama-logo">
                        <a href="#"><img src="/assets/images/logo-topbar.gif" class="img-responsive" alt=""></a>
                    </div>
                </div>
                <div class="col-lg-7 align-self-center">
                    <div class="jama-info d-inline-flex">
                        <ul>
                            <li class="border-right"><i class="fa fa-phone me-1"></i> 15348361234</li>
                            <li><i class="fa fa-envelope me-1"></i>1192878959@qq.com</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <div class="navigation">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <nav class="navbar navbar-expand-md navbar-dark">
                        <div class="navbar-header">
                            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapsibleNavbar">
                                <span class="fa fa-navicon"></span>
                            </button>
                        </div>
                        <div class="justify-content-center collapse navbar-collapse" id="collapsibleNavbar">
                            <ul class="navbar-nav">
                                <li class="nav-item dropdown">
                                    <a class="nav-link dropdown-toggle active" id="navbarDropdown2" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">商品</a>
                                    <div class="dropdown-menu" aria-labelledby="navbarDropdown2">
                                        <a class="dropdown-item" href="/cart/view">总类管理</a>
                                        <a class="dropdown-item" href="/cart/allProducts">大类管理</a>
                                        <a class="dropdown-item" href="/cart/allItems">小类管理</a>
                                    </div>
                                </li>
                                <li class="nav-item"><a class="nav-link" href="/main/view">首页</a></li>
                                <li class="nav-item"><a class="nav-link" href="/order/view">订单</a></li>
                                <li class="nav-item"><a class="nav-link" href="/account/view">用户</a></li>
                            </ul>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </div>

    <div id="Catalog">
        <a href="/cart/view"
           style="    background-color: green;
        border: 1px solid grey;
        color: white;
        border-radius: 4px;
        padding: 8px 16px;
        text-decoration: none;
        display: inline-block;
        font-size: 14px;
        margin: 4px 2px;
        cursor: pointer;
        transition: background-color 0.3s;">返回</a>
        <h2>添加总类</h2>
        <form action="/cart/category/add" method="post">
            <table>
                <tr>
                    <th colspan="2">总类信息</th>
                </tr>
                <tr>
                    <td>总类ID:</td>
                    <td>
                        <input type="text" name="categoryId" required>
                    </td>
                </tr>
                <tr>
                    <td>名称:</td>
                    <td>
                        <input type="text" name="name" required>
                    </td>
                </tr>
                <tr>
                    <td>描述:</td>
                    <td>
                        <input type="text" name="description" required>
                    </td>
                </tr>
                <tr>
                    <td>价格:</td>
                    <td>
                        <input type="number" name="price" step="0.01" required>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" value="添加" class="submit-button">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>

<script src="/assets/js/jquery-3.4.1.min.js"></script>
<script src="/assets/js/bootstrap.bundle.min.js"></script>
<script src="/assets/js/swiper.min.js"></script>
<script src="/assets/js/jquery.mixitup.min.js"></script>
<script src="/assets/js/main.js"></script>
</body>
</html> 